import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引入moment
import moment from 'moment'

// 使用插件
Vue.use(ElementUI)

// 注册过滤器
Vue.filter('fmtDate', (date) => {
  return moment(date).format('YYYY-MM-DD hh-mm-ss')
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
